<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>音乐列表</title>
    <meta name="keywords" content="musicList,classify,manage"/>
    <meta name="description" content="分类,音乐列表"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="./assets/css/validationEngine.jquery.css" type="text/css">
    <link rel="stylesheet" href="./assets/css/datepicker.css"/>
    <!-- basic styles -->
</head>

<body>
<div class="page-content page-content2">
    <div class="row">
        <div class="col-xs-12">
            <form id="musicSearchForm" class="form-horizontal" role="form">
                <div class="topSearchBox">
                    <div class="input-group input-group-sm input-group-sm3">
                        <span class="input-group-addon group-addon group-addon2" style="float: none;">音乐名/歌手名</span>
                        <span class="spanIcons"></span>
                        <input type="text" class="form-control form-control-two" id="songName" style="float: none">
                        <button type="button" id="dataSearch" class="btn btn-primary btn-sm" title="查询">
                            <i class="icon-search nav-search-icon"></i>
                        </button>
                    </div>
                    <div class="input-group input-group-sm input-group-sm3" style="margin-left: 73px;">
                        <button id="deleteMusic" type="button" class="btn btn-primary btn-sm" title="移除音乐" disabled>
                            <!--<i class="icon-plus-sign bigger-120"></i>-->
                            移除
                        </button>
                        <button id="exportUser" type="button" class="btn btn-sm btn-success"
                                data-toggle="modal" data-target="#musicModal" title="添加音乐">
                            <!--<i class="icon-plus-sign bigger-120"></i>-->
                            添加
                        </button>
                        <button id="copyUser" type="button" class="btn btn-sm btn-success"
                                data-toggle="modal" data-target="#copyModal" title="复制到其他分类" disabled>
                            <!--<i class="icon-plus-sign bigger-120"></i>-->
                            复制到其他分类
                        </button>
                    </div>
                </div>
            </form>
            <div class="row" style="margin-top: 0px;">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <table id="musicList_table" class="table"></table>
                    <!-- PAGE CONTENT ENDS -->
                </div>
                <!-- /.col -->
            </div>
        </div>
    </div>
</div>
<!-- /.page-content -->
<!-- 添加的modal start-->
<div class="modal fade bs-example-modal-lg" id="musicModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel">音乐列表</h4>
            </div>
            <div class="modal-body">
                <form id="recommendMusicFormss" class="form-horizontal" role="form">
                    <div class="input-group input-group-sm input-group-sm3" style="margin-bottom: 20px;">
                        <span class="input-group-addon group-addon group-addon2" style="float: none;padding-left: 0px;">音乐名/歌手名</span>
                        <span class="spanIcons"></span>
                        <input type="text" class="form-control form-control-two" id="songName" style="float: none">
                        <button type="button" form="recommendMusicFormss" id="dataSearch" class="btn btn-primary btn-sm" title="查询">
                            <i class="icon-search nav-search-icon"></i>
                        </button>
                    </div>
                </form>
                <table id="music_table" class="table"></table>
                <form id="musicTableForm" hidden></form>
            </div>
            <div class="modal-footer">
                <button class="btn btn-primary" form="musicTableForm" type="button" id="recommend">保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!-- 复制或移动的modal start-->
<div class="modal fade" id="copyModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel">复制或者移动到其他分类</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" role="form" id="copyForm"
                      data-type="update">
                    <div class="form-group">
                        <label for="updateDes" class="col-sm-2 control-label">类型</label>
                        <div class="col-sm-10">
                            <select id="musicType"></select>
                        </div>
                    </div>
                    <div id="wrap" class="form-group">
                        <label for="inputPassword3" class="col-sm-2 control-label">操作</label>
                        <div class="col-sm-10"
                             style="padding-left: 0px; padding-top: 0px; margin-top: -5px;">
                            <div class="radio col-sm-2" style="padding-left: 10px;">
                                <label> <input name="types" type="radio" value="1001"
                                               class="ace"/> <span class="lbl"> 复制</span>
                                </label>
                            </div>
                            <div class="radio col-sm-2" style="padding-left: 0px;">
                                <label> <input name="types" type="radio" value="1002"
                                               class="ace"/> <span class="lbl"> 移动</span>
                                </label>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button class="btn btn-primary" form="copyForm" type="button" id="copyBtn">保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!-- 复制的modal end-->

<!-- 删除的modal start-->
<div class="modal fade" id="deleteModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">删除任务</h4>
            </div>
            <!--Form的id为deleteForm-->
            <form id="deleteForm" data-type="delete">
                <div class="modal-body"></div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="submit" class="btn btn-primary">确认</button>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- 删除的modal end-->
<script src="./assets/js/date-time/bootstrap-datepicker.min.js"></script>
<script src="script/musicClassify.js"></script>
</body>
</html>